local extension = Package:new("ym_derived", Package.CardPack)
extension.extensionName = "ym_Al"

extension:loadSkillSkelsByPath("./packages/ym_Al/pkg/ym_derived/skills")

Fk:loadTranslationTable{
    ["ym_derived"] = "佚名卡牌",
}
local ym__drugs = fk.CreateCard{
    name = "&ym__drugs",
    type = Card.TypeBasic,
    skill = "ym__drugs_skill",
}
Fk:loadTranslationTable{
    ["ym__drugs"] = "散",
	[":ym__drugs"] = "基本牌<br /><b>时机</b>：出牌阶段<br /><b>目标：</b>你<br /><b>效果：</b>若你已受伤，回复1点体力且下次受到的伤害+1。若你未受伤，或因此回复至满血，本阶段使用【杀】与【酒】次数+1。",
}
extension:addCardSpec("ym__drugs",Card.Club,1)

local life_death = fk.CreateCard{
    name = "&ym__life_death",
    type = Card.TypeTrick,
    skill = "ym__life_death_skill",
}
Fk:loadTranslationTable{
    ["ym__life_death"] = "你死我活",
    [":ym__life_death"] = "锦囊牌<br/>"..
    "<b>时机</b>：出牌阶段<br/>"..
    "<b>目标</b>：你<br/>"..
    "<b>效果</b>：目标以外的角色开始“乱武”（对距离最近角色用【杀】或失去一点体力），直到有角色死亡。（此牌不可响应）",

    ["ym__life_death_skill"] = "你死我活",
    ["#ym__life_death_skill"] = "令所有角色开始“乱武”（选择使用【杀】或失去体力）",
    ["#luanwu-use"] = "乱武：你需要对距离最近的一名角色使用一张【杀】，否则失去1点体力",
}
extension:addCardSpec("ym__life_death",Card.Spade,13)
extension:addCardSpec("ym__life_death",Card.Club,13)
extension:addCardSpec("ym__life_death",Card.Heart,13)
extension:addCardSpec("ym__life_death",Card.Diamond,13)

local foresight = fk.CreateCard{
    name = "&ym__foresight",
    type = Card.TypeTrick,
    skill = "ym__foresight_skill",
}
Fk:loadTranslationTable{
    ["ym__foresight"] = "洞烛先机",
    [":ym__foresight"] = "锦囊牌<br/>"..
    "<b>时机</b>：出牌阶段<br/>"..
    "<b>目标</b>：你<br/>"..
    "<b>效果</b>：目标角色卜算2（观看牌堆顶的两张牌，将其中任意张以任意顺序置于牌堆顶，其余以任意顺序置于牌堆底），然后摸两张牌。",

    ["foresight_skill"] = "洞烛先机",
    ["#foresight_skill"] = "观看牌堆顶两张牌，以任意顺序置于牌堆顶或牌堆底，然后摸两张牌",
}
extension:addCardSpec("ym__foresight",Card.Heart,7)

local sincere_treat = fk.CreateCard{
    name = "&ym__sincere_treat",
    type = Card.TypeTrick,
    skill = "ym__sincere_treat_skill",
}
Fk:loadTranslationTable{
    ["ym__sincere_treat"] = "推心置腹",
    ["ym__sincere_treat_skill"] = "推心置腹",
    [":ym__sincere_treat"] = "锦囊牌<br/><b>时机</b>：出牌阶段<br/><b>目标</b>：距离为1的一名区域内有牌的其他角色<br/><b>效果</b>：你获得目标角色"..
    "区域里至多两张牌，然后交给其等量的手牌。",
    ["#sincere_treat-give"] = "推心置腹：请交给 %dest %arg张手牌",
}
extension:addCardSpec("ym__sincere_treat",Card.Diamond, 9)

local breastplate = fk.CreateCard{
    name = "&ym__breastplate",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeArmor,
    equip_skill = "#ym__breastplate_skill",
    special_skills = {"#ym__put_equip"},
}
Fk:loadTranslationTable{
    ["ym__breastplate"] = "护心镜",
    [":ym__breastplate"] = "装备牌·防具<br/>"..
    "<b>防具技能</b>：当你受到大于1点的伤害或致命伤害时，你可以将装备区里的【护心镜】置入弃牌堆，防止此伤害。",

    ["ym__life_death_skill"] = "你死我活",
    ["#ym__life_death_skill"] = "令所有角色开始“乱武”（选择使用【杀】或失去体力）",
    ["#luanwu-use"] = "乱武：你需要对距离最近的一名角色使用一张【杀】，否则失去1点体力",
}
extension:addCardSpec("ym__breastplate",Card.Club,1)

--[[local women_dress3 = fk.CreateCard{
    name = "&ym_lewu3__women_dress",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeWeapon,
    skill = "certamen__equip_skill",
    equip_skill = "#certamen__women_dress_skill",
}
local women_dress4 = fk.CreateCard{
    name = "&ym_lewu4__women_dress",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeArmor,
    skill = "certamen__equip_skill",
    equip_skill = "#certamen__women_dress_skill",
}
local women_dress5 = fk.CreateCard{
    name = "&ym_lewu5__women_dress",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeDefensiveRide,
    skill = "certamen__equip_skill",
    equip_skill = "#certamen__women_dress_skill",
}
local women_dress6 = fk.CreateCard{
    name = "&ym_lewu6__women_dress",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeOffensiveRide,
    skill = "certamen__equip_skill",
    equip_skill = "#certamen__women_dress_skill",
}
local women_dress7 = fk.CreateCard{
    name = "&ym_lewu7__women_dress",
    type = Card.TypeEquip,
    sub_type = Card.SubtypeTreasure,
    skill = "certamen__equip_skill",
    equip_skill = "#certamen__women_dress_skill",
}
extension:addCardSpec("ym_lewu3__women_dress",Card.Heart,9)
extension:addCardSpec("ym_lewu4__women_dress",Card.Heart,10)
extension:addCardSpec("ym_lewu5__women_dress",Card.Heart,11)
extension:addCardSpec("ym_lewu6__women_dress",Card.Heart,12)
extension:addCardSpec("ym_lewu7__women_dress",Card.Heart,13)
Fk:loadTranslationTable{
    ["ym_lewu3__women_dress"] = "女装",
    [":ym_lewu3__women_dress"] = "装备牌·武器<br/>"..
    "<b>防具技能</b>：锁定技，当【女装】进入或离开你的装备区后，若你是男性角色，你弃置一张其他牌。",
    ["ym_lewu4__women_dress"] = "女装",
    [":ym_lewu4__women_dress"] = "装备牌·防具<br/>"..
    "<b>防具技能</b>：锁定技，当【女装】进入或离开你的装备区后，若你是男性角色，你弃置一张其他牌。",
    ["ym_lewu5__women_dress"] = "女装",
    [":ym_lewu5__women_dress"] = "装备牌·坐骑<br/>"..
    "<b>防具技能</b>：锁定技，当【女装】进入或离开你的装备区后，若你是男性角色，你弃置一张其他牌。",
    ["ym_lewu6__women_dress"] = "女装",
    [":ym_lewu6__women_dress"] = "装备牌·坐骑<br/>"..
    "<b>防具技能</b>：锁定技，当【女装】进入或离开你的装备区后，若你是男性角色，你弃置一张其他牌。",
    ["ym_lewu7__women_dress"] = "女装",
    [":ym_lewu7__women_dress"] = "装备牌·宝物<br/>"..
    "<b>防具技能</b>：锁定技，当【女装】进入或离开你的装备区后，若你是男性角色，你弃置一张其他牌。",
}]]--

extension:loadCardSkels {
    ym__drugs,

    life_death,
    breastplate,
    foresight,
    sincere_treat,
}
return extension